<!--startprint-->
<div class="m10">
<div class="table-head fn-clear"> 
    维修设备信息  
</div>
<table class="formtable">
    <tr class="bg-f5">
      <th>跟踪号:</th>
      <td>{$info['number']}</td>
      <th>IMEI号:</th>
      <td>{$info['imei']}</td>
    </tr>
    <tr class="bg-f5">
      <th>厂商:</th>
      <td>{$info['manufacturer_name']}</td>
      <th>机型:</th>
      <td>{$info['producttype_name']}</td>
    </tr>
    <tr class="bg-f5">
      <th>购买日期:</th>
      <td>{if $info['shop_time']}{date('Y-m-d',$info['shop_time'])}{/if}</td>
      <th>维修工程师:</th>
      <td>{$userInfo['username']}</td>
    </tr>
    <tr class="bg-f5">
      <th>是否保内:</th>
      <td>{if $info['overtime'] == '是'}<span class="badge">保内</span>{else}<span class="badge bg-red">过保</span>{/if}</td>
      <th>是否紧急:</th>
      <td>{if $info['is_urgent']}<span class="badge bg-red">加急</span>{else}<span class="badge">普通</span>{/if}</td>
    </tr>
    <tr class="bg-f5">
      <th>客户描述故障:</th>
      <td colspan="3">{$info['fault_why']}</td>
    </tr>  
    <tr>
      <th>检查实际故障:</th>
      <td colspan="3">{$info['failure_cause']}</td>
    </tr>
</table>
<div class="table-head fn-clear"> 
    使用维修物料  
</div>
<table class="table">
<thead>
    <tr>
        <td class="fn-tac w60">#</td>
        <td>产品名称</td>
        <td class="w100 fn-tac">物料代码</td>
        <td>物料名称</td>
        <td>规格型号</td>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td>{$vo['product']}</td>
    <td class="fn-tac">{$vo['code']}</td>
    <td>{$vo['name']}</td>
    <td>{$vo['parameter']}</td>
</tr>
{/loop}
</tbody>
</table>
</div>
<!--endprint-->
<div class="btn fn-tac">
    <a href="javascript:;" onClick="doPrint()"  class="button">
        <i class="iconfont icon-dayinji"></i> 打印
    </a>
</div>
<script type="text/javascript">
function doPrint() { 
    bdhtml=window.document.body.innerHTML; 
    sprnstr="<!--startprint-->"; 
    eprnstr="<!--endprint-->"; 
    prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
    prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
    window.document.body.innerHTML=prnhtml; 
    window.print(); 
}
</script>